home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
223_01
/
getchar.c
< prev
next >
Wrap
Text File
|
1980-01-01
|
384b
|
19 lines
/*
** getchar() Direct console input via BDOS(6)
*/
#include <stdio.h>
#asm
GETKBD::
#endasm
static char c;
getchar() {
while(!(c = bdos(6,255)));
return(c == 0x1a ? -1 : c);
}